/*
Copyright 2008  Four Roads LLC conact@4-roads.com

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either 
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with this library.  If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using CommunityServer.Controls;
using CommunityServer.Components;
using CA = ComponentArt.Web.UI;
using ResourceControl = CommunityServer.ControlPanel.Controls.ResourceControl;
using ResourceLinkButton = CommunityServer.ControlPanel.Controls.ResourceLinkButton;

namespace FourRoads.Links.Controls
{
	/// <summary>
	/// Summary description for DefaultPermissionListControl.
	/// </summary>
	public class DefaultPermissionListControl : BaseResLinkPermissionsGridControl
	{
		protected ComponentArt.Web.UI.Grid Grid1;
		protected ResourceLinkButton SaveButton;

		override protected void OnInit(EventArgs e)
		{
			this.Load += new System.EventHandler(this.Page_Load);
			base.OnInit(e);
			this.SaveButton.Click +=new EventHandler(SaveButton_Click);
		}


		private void Page_Load(object sender, EventArgs e)
		{
			this.SectionID = -1;
		}

		protected override bool CreateFromDefault(PermissionBase permission)
		{
			return false;
		}

		private void InitializeComponent()
		{
		
		}

		protected override bool IsNew(PermissionBase permission)
		{
			return permission == null;
		}

		private void SaveButton_Click(object sender, EventArgs e)
		{
			base.Save();
		}
	}
}
